import { Controller, Get, Query } from '@nestjs/common';
import { ShellService } from './shell.service';
@Controller('/shell')
export class ShellController {
  constructor(private readonly shell: ShellService) {}

  @Get('/')
  async Shell(@Query('shell') shell: string): Promise<string> {
    return await this.shell.runCommand(shell);
  }
}
